import request from '../utils/fetch'
//获取活动列表
export function getActByStore (data) {
  return request({
    url: '/activityMsg/getActByStore',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
//获取所有活动类型
export function getActType (data) {
  return request({
    url: '/activityMsg/getActType',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function addActivity (data) {
  return request({
    url: '/activityMsg/addActivity',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
export function updateActivity (data) {
  return request({
    url: 'activityMsg/updateActivity',
    method: 'put',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
export function switchAct (data) {
  return request({
    url: '/activityMsg/switchAct',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function delActivity (data) {
  return request({
    url: '/activityMsg/delActivity',
    method: 'delete',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
